浏览器(BOM对象模型)API 索引数据通信 APIfetch()fetch() 全局的 fetch() 方法用于发起获取资源的请求。它返回一个 promise,这个 promise 会在请求响应后被 resolve,并传回 Response 对象。